package com.csun.cmny.provider.model.dto.gateway;

import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2019-09-03 13:37
 * @Description: the class bind csun camera location dto
 */
@Data
public class BindCsunGatewayLocationDto {

    /**
     * 设备Id
     */
    @NotNull(message = "{device.id.null}")
    private Long deviceId;

    /**
     * 网关绑定类型 0-自定义, 1-人, 2-床, 3-房间,4-life
     */
    @NotNull(message = "{csun.camera.bind.type.null}")
    @Range(min = 0, max = 4, message = "{csun.camera.bind.type.range}")
    private Integer bindType;

    /**
     * 摄像头绑定位置
     */
    private String location;

    /**
     * 老人Id
     */
    private Integer oldmanId;

    /**
     * 老人姓名
     */
    private String oldmanName;

    /**
     * 床位Id
     */
    private Integer bedId;

    /**
     * 房间Id
     */
    private Integer roomId;
}
